<?php
/**
 * 如果未显式定义变量 $seo_title $seo_keywords $seo_description 则显式默认的
 *
 *
 *
 *
 */

if(empty($seo_title) || $seo_title == '') {
    $seo_title = $G_cfg['site_info']['seo_title'];
}
if(empty($seo_keywords) || $seo_keywords == '') {
    $seo_keywords = $G_cfg['site_info']['seo_keywords'];
}
if(empty($seo_description) || $seo_description == '') {
    $seo_description = $G_cfg['site_info']['seo_description'];
}
$page_title = $seo_title . '_' . $G_cfg['site_info']['site_name'];
?>
<TITLE> <?php echo $page_title; ?> </TITLE>
<?php
if($seo_keywords != '') {
    echo "<META NAME=\"keywords\" CONTENT=\"$seo_keywords\" />\n";
}
if($seo_description != '') {
    echo "<META NAME=\"description\" CONTENT=\"$seo_description\" />\n";
}
?>